-- GENERATED SPELL FOR [Warp-Gate Engineer] --


function spell0_20404(pUnit, Event) --@Sundering Swipe,n/a--
pUnit:FullCastSpellOnTarget(35147,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20404', 30297, 1)
end

function Sorts_20404(pUnit, Event)
local choix_sorts_20404 = math.random(0, 0)
if choix_sorts_20404 == 0 then
pUnit:RegisterEvent('spell0_20404', 1, 1)
end
end

function mob20404_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20404', math.random(1500, 3000), 1)
end

function mob20404_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20404_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20404_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20404, 1, 'mob20404_Action')
RegisterUnitEvent(20404, 2, 'mob20404_Leave')
RegisterUnitEvent(20404, 3, 'mob20404_Kill')
RegisterUnitEvent(20404, 4, 'mob20404_Die')
